import request from '@/utils/request'

// 查询首页热门房源城市列表
export function listTbpopularcity(query) {
  return request({
    url: '/apartment/tbpopularcity/list',
    method: 'get',
    params: query
  })
}

// 查询首页热门房源城市详细
export function getTbpopularcity(id) {
  return request({
    url: '/apartment/tbpopularcity/' + id,
    method: 'get'
  })
}

// 新增首页热门房源城市
export function addTbpopularcity(data) {
  return request({
    url: '/apartment/tbpopularcity',
    method: 'post',
    data: data
  })
}

// 修改首页热门房源城市
export function updateTbpopularcity(data) {
  return request({
    url: '/apartment/tbpopularcity',
    method: 'put',
    data: data
  })
}

// 删除首页热门房源城市
export function delTbpopularcity(id) {
  return request({
    url: '/apartment/tbpopularcity/' + id,
    method: 'delete'
  })
}
